.class public Lde/innosystec/unrar/unpack/ppm/k;
.super Ljava/lang/Object;
.source "SubAllocator.java"


# static fields
.field public static final t:I


# instance fields
.field private a:I

.field private b:[I

.field private c:[I

.field private d:I

.field private e:I

.field private f:I

.field private g:I

.field private final h:[Lde/innosystec/unrar/unpack/ppm/g;

.field private i:I

.field private j:I

.field private k:I

.field private l:I

.field private m:[B

.field private n:I

.field private o:I

.field private p:Lde/innosystec/unrar/unpack/ppm/g;

.field private q:Lde/innosystec/unrar/unpack/ppm/f;

.field private r:Lde/innosystec/unrar/unpack/ppm/f;

.field private s:Lde/innosystec/unrar/unpack/ppm/f;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .line 1
    sget v0, Lde/innosystec/unrar/unpack/ppm/c;->o:I

    const/16 v1, 0xc

    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v0

    sput v0, Lde/innosystec/unrar/unpack/ppm/k;->t:I

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/16 v0, 0x26

    new-array v1, v0, [I

    .line 2
    iput-object v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    const/16 v1, 0x80

    new-array v1, v1, [I

    .line 3
    iput-object v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->c:[I

    new-array v0, v0, [Lde/innosystec/unrar/unpack/ppm/g;

    .line 4
    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    const/4 v0, 0x0

    .line 5
    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->p:Lde/innosystec/unrar/unpack/ppm/g;

    .line 6
    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->q:Lde/innosystec/unrar/unpack/ppm/f;

    .line 7
    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->r:Lde/innosystec/unrar/unpack/ppm/f;

    .line 8
    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->s:Lde/innosystec/unrar/unpack/ppm/f;

    .line 9
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/k;->c()V

    return-void
.end method

.method private b(III)V
    .locals 2

    .line 1
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    aget p2, v0, p2

    aget v1, v0, p3

    sub-int/2addr p2, v1

    .line 2
    aget p3, v0, p3

    invoke-direct {p0, p3}, Lde/innosystec/unrar/unpack/ppm/k;->e(I)I

    move-result p3

    add-int/2addr p1, p3

    .line 3
    iget-object p3, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->c:[I

    add-int/lit8 v1, p2, -0x1

    aget v0, v0, v1

    aget p3, p3, v0

    if-eq p3, p2, :cond_0

    add-int/lit8 v0, v0, -0x1

    .line 4
    invoke-direct {p0, p1, v0}, Lde/innosystec/unrar/unpack/ppm/k;->d(II)V

    .line 5
    iget-object p3, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    aget p3, p3, v0

    invoke-direct {p0, p3}, Lde/innosystec/unrar/unpack/ppm/k;->e(I)I

    move-result v0

    add-int/2addr p1, v0

    sub-int/2addr p2, p3

    .line 6
    :cond_0
    iget-object p3, p0, Lde/innosystec/unrar/unpack/ppm/k;->c:[I

    add-int/lit8 p2, p2, -0x1

    aget p2, p3, p2

    invoke-direct {p0, p1, p2}, Lde/innosystec/unrar/unpack/ppm/k;->d(II)V

    return-void
.end method

.method private c(II)I
    .locals 0

    .line 2
    invoke-direct {p0, p2}, Lde/innosystec/unrar/unpack/ppm/k;->e(I)I

    move-result p2

    add-int/2addr p1, p2

    return p1
.end method

.method private d(II)V
    .locals 1

    .line 1
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->p:Lde/innosystec/unrar/unpack/ppm/g;

    .line 2
    invoke-virtual {v0, p1}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 3
    iget-object p1, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    aget-object p1, p1, p2

    invoke-virtual {p1}, Lde/innosystec/unrar/unpack/ppm/g;->b()I

    move-result p1

    invoke-virtual {v0, p1}, Lde/innosystec/unrar/unpack/ppm/g;->b(I)V

    .line 4
    iget-object p1, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    aget-object p1, p1, p2

    invoke-virtual {p1, v0}, Lde/innosystec/unrar/unpack/ppm/g;->a(Lde/innosystec/unrar/unpack/ppm/g;)V

    return-void
.end method

.method private e(I)I
    .locals 1

    .line 1
    sget v0, Lde/innosystec/unrar/unpack/ppm/k;->t:I

    mul-int v0, v0, p1

    return v0
.end method

.method private f(I)I
    .locals 3

    .line 1
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->d:I

    if-nez v0, :cond_0

    const/16 v0, 0xff

    .line 2
    iput v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->d:I

    .line 3
    invoke-direct {p0}, Lde/innosystec/unrar/unpack/ppm/k;->k()V

    .line 4
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    aget-object v0, v0, p1

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/g;->b()I

    move-result v0

    if-eqz v0, :cond_0

    .line 5
    invoke-direct {p0, p1}, Lde/innosystec/unrar/unpack/ppm/k;->g(I)I

    move-result p1

    return p1

    :cond_0
    move v0, p1

    :cond_1
    add-int/lit8 v0, v0, 0x1

    const/16 v1, 0x26

    if-ne v0, v1, :cond_3

    .line 6
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->d:I

    add-int/lit8 v0, v0, -0x1

    iput v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->d:I

    .line 7
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    aget v0, v0, p1

    invoke-direct {p0, v0}, Lde/innosystec/unrar/unpack/ppm/k;->e(I)I

    move-result v0

    .line 8
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    aget p1, v1, p1

    mul-int/lit8 p1, p1, 0xc

    .line 9
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->l:I

    iget v2, p0, Lde/innosystec/unrar/unpack/ppm/k;->i:I

    sub-int v2, v1, v2

    if-le v2, p1, :cond_2

    sub-int/2addr v1, p1

    .line 10
    iput v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->l:I

    .line 11
    iget p1, p0, Lde/innosystec/unrar/unpack/ppm/k;->j:I

    sub-int/2addr p1, v0

    iput p1, p0, Lde/innosystec/unrar/unpack/ppm/k;->j:I

    return p1

    :cond_2
    const/4 p1, 0x0

    return p1

    .line 12
    :cond_3
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    aget-object v1, v1, v0

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/g;->b()I

    move-result v1

    if-eqz v1, :cond_1

    .line 13
    invoke-direct {p0, v0}, Lde/innosystec/unrar/unpack/ppm/k;->g(I)I

    move-result v1

    .line 14
    invoke-direct {p0, v1, v0, p1}, Lde/innosystec/unrar/unpack/ppm/k;->b(III)V

    return v1
.end method

.method private g(I)I
    .locals 3

    .line 1
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    aget-object v0, v0, p1

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/g;->b()I

    move-result v0

    .line 2
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->p:Lde/innosystec/unrar/unpack/ppm/g;

    .line 3
    invoke-virtual {v1, v0}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 4
    iget-object v2, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    aget-object p1, v2, p1

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/g;->b()I

    move-result v1

    invoke-virtual {p1, v1}, Lde/innosystec/unrar/unpack/ppm/g;->b(I)V

    return v0
.end method

.method private k()V
    .locals 6

    .line 1
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->q:Lde/innosystec/unrar/unpack/ppm/f;

    .line 2
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->o:I

    invoke-virtual {v0, v1}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 3
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->r:Lde/innosystec/unrar/unpack/ppm/f;

    .line 4
    iget-object v2, p0, Lde/innosystec/unrar/unpack/ppm/k;->s:Lde/innosystec/unrar/unpack/ppm/f;

    .line 5
    iget v3, p0, Lde/innosystec/unrar/unpack/ppm/k;->f:I

    iget v4, p0, Lde/innosystec/unrar/unpack/ppm/k;->g:I

    const/4 v5, 0x0

    if-eq v3, v4, :cond_0

    .line 6
    iget-object v4, p0, Lde/innosystec/unrar/unpack/ppm/k;->m:[B

    aput-byte v5, v4, v3

    .line 7
    :cond_0
    invoke-virtual {v0, v0}, Lde/innosystec/unrar/unpack/ppm/f;->c(Lde/innosystec/unrar/unpack/ppm/f;)V

    invoke-virtual {v0, v0}, Lde/innosystec/unrar/unpack/ppm/f;->b(Lde/innosystec/unrar/unpack/ppm/f;)V

    :goto_0
    const/16 v3, 0x26

    const v4, 0xffff

    if-ge v5, v3, :cond_2

    .line 8
    :goto_1
    iget-object v3, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    aget-object v3, v3, v5

    invoke-virtual {v3}, Lde/innosystec/unrar/unpack/ppm/g;->b()I

    move-result v3

    if-eqz v3, :cond_1

    .line 9
    invoke-direct {p0, v5}, Lde/innosystec/unrar/unpack/ppm/k;->g(I)I

    move-result v3

    invoke-virtual {v1, v3}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 10
    invoke-virtual {v1, v0}, Lde/innosystec/unrar/unpack/ppm/f;->a(Lde/innosystec/unrar/unpack/ppm/f;)V

    .line 11
    invoke-virtual {v1, v4}, Lde/innosystec/unrar/unpack/ppm/f;->e(I)V

    .line 12
    iget-object v3, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    aget v3, v3, v5

    invoke-virtual {v1, v3}, Lde/innosystec/unrar/unpack/ppm/f;->b(I)V

    goto :goto_1

    :cond_1
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    .line 13
    :cond_2
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/f;->c()I

    move-result v3

    invoke-virtual {v1, v3}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    :goto_2
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v3

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v5

    if-eq v3, v5, :cond_4

    .line 14
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v3

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/f;->b()I

    move-result v5

    invoke-direct {p0, v3, v5}, Lde/innosystec/unrar/unpack/ppm/k;->c(II)I

    move-result v3

    invoke-virtual {v2, v3}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 15
    :goto_3
    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/f;->e()I

    move-result v3

    if-ne v3, v4, :cond_3

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/f;->b()I

    move-result v3

    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/f;->b()I

    move-result v5

    add-int/2addr v3, v5

    const/high16 v5, 0x10000

    if-ge v3, v5, :cond_3

    .line 16
    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/f;->f()V

    .line 17
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/f;->b()I

    move-result v3

    invoke-virtual {v2}, Lde/innosystec/unrar/unpack/ppm/f;->b()I

    move-result v5

    add-int/2addr v3, v5

    invoke-virtual {v1, v3}, Lde/innosystec/unrar/unpack/ppm/f;->b(I)V

    .line 18
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v3

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/f;->b()I

    move-result v5

    invoke-direct {p0, v3, v5}, Lde/innosystec/unrar/unpack/ppm/k;->c(II)I

    move-result v3

    invoke-virtual {v2, v3}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    goto :goto_3

    .line 19
    :cond_3
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/f;->c()I

    move-result v3

    invoke-virtual {v1, v3}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    goto :goto_2

    .line 20
    :cond_4
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/f;->c()I

    move-result v2

    invoke-virtual {v1, v2}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    .line 21
    :goto_4
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v2

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v3

    if-eq v2, v3, :cond_7

    .line 22
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/f;->f()V

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/f;->b()I

    move-result v2

    :goto_5
    const/16 v3, 0x80

    if-le v2, v3, :cond_5

    .line 23
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v4

    const/16 v5, 0x25

    invoke-direct {p0, v4, v5}, Lde/innosystec/unrar/unpack/ppm/k;->d(II)V

    add-int/lit8 v2, v2, -0x80

    .line 24
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v4

    invoke-direct {p0, v4, v3}, Lde/innosystec/unrar/unpack/ppm/k;->c(II)I

    move-result v3

    invoke-virtual {v1, v3}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    goto :goto_5

    .line 25
    :cond_5
    iget-object v3, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    iget-object v4, p0, Lde/innosystec/unrar/unpack/ppm/k;->c:[I

    add-int/lit8 v5, v2, -0x1

    aget v4, v4, v5

    aget v5, v3, v4

    if-eq v5, v2, :cond_6

    add-int/lit8 v4, v4, -0x1

    .line 26
    aget v3, v3, v4

    sub-int v3, v2, v3

    .line 27
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v5

    sub-int/2addr v2, v3

    invoke-direct {p0, v5, v2}, Lde/innosystec/unrar/unpack/ppm/k;->c(II)I

    move-result v2

    add-int/lit8 v3, v3, -0x1

    invoke-direct {p0, v2, v3}, Lde/innosystec/unrar/unpack/ppm/k;->d(II)V

    .line 28
    :cond_6
    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/d;->a()I

    move-result v2

    invoke-direct {p0, v2, v4}, Lde/innosystec/unrar/unpack/ppm/k;->d(II)V

    .line 29
    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/f;->c()I

    move-result v2

    invoke-virtual {v1, v2}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    goto :goto_4

    :cond_7
    return-void
.end method

.method private l()I
    .locals 1

    .line 1
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    array-length v0, v0

    mul-int/lit8 v0, v0, 0x4

    return v0
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 1
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->a:I

    return v0
.end method

.method public a(I)I
    .locals 3

    .line 2
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->c:[I

    add-int/lit8 p1, p1, -0x1

    aget p1, v0, p1

    .line 3
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    aget-object v0, v0, p1

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/g;->b()I

    move-result v0

    if-eqz v0, :cond_0

    .line 4
    invoke-direct {p0, p1}, Lde/innosystec/unrar/unpack/ppm/k;->g(I)I

    move-result p1

    return p1

    .line 5
    :cond_0
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->f:I

    .line 6
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    aget v1, v1, p1

    invoke-direct {p0, v1}, Lde/innosystec/unrar/unpack/ppm/k;->e(I)I

    move-result v1

    add-int/2addr v1, v0

    iput v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->f:I

    .line 7
    iget v2, p0, Lde/innosystec/unrar/unpack/ppm/k;->g:I

    if-gt v1, v2, :cond_1

    return v0

    .line 8
    :cond_1
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    aget v0, v0, p1

    invoke-direct {p0, v0}, Lde/innosystec/unrar/unpack/ppm/k;->e(I)I

    move-result v0

    sub-int/2addr v1, v0

    iput v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->f:I

    .line 9
    invoke-direct {p0, p1}, Lde/innosystec/unrar/unpack/ppm/k;->f(I)I

    move-result p1

    return p1
.end method

.method public a(II)I
    .locals 3

    .line 10
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->c:[I

    add-int/lit8 v1, p2, -0x1

    aget v2, v0, v1

    add-int/lit8 v1, v1, 0x1

    .line 11
    aget v0, v0, v1

    if-ne v2, v0, :cond_0

    return p1

    :cond_0
    add-int/lit8 v0, p2, 0x1

    .line 12
    invoke-virtual {p0, v0}, Lde/innosystec/unrar/unpack/ppm/k;->a(I)I

    move-result v0

    if-eqz v0, :cond_1

    .line 13
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->m:[B

    invoke-direct {p0, p2}, Lde/innosystec/unrar/unpack/ppm/k;->e(I)I

    move-result p2

    invoke-static {v1, p1, v1, v0, p2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 14
    invoke-direct {p0, p1, v2}, Lde/innosystec/unrar/unpack/ppm/k;->d(II)V

    :cond_1
    return v0
.end method

.method public a(III)I
    .locals 2

    .line 15
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->c:[I

    add-int/lit8 p2, p2, -0x1

    aget p2, v0, p2

    add-int/lit8 v1, p3, -0x1

    .line 16
    aget v0, v0, v1

    if-ne p2, v0, :cond_0

    return p1

    .line 17
    :cond_0
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    aget-object v1, v1, v0

    invoke-virtual {v1}, Lde/innosystec/unrar/unpack/ppm/g;->b()I

    move-result v1

    if-eqz v1, :cond_1

    .line 18
    invoke-direct {p0, v0}, Lde/innosystec/unrar/unpack/ppm/k;->g(I)I

    move-result v0

    .line 19
    iget-object v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->m:[B

    invoke-direct {p0, p3}, Lde/innosystec/unrar/unpack/ppm/k;->e(I)I

    move-result p3

    invoke-static {v1, p1, v1, v0, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 20
    invoke-direct {p0, p1, p2}, Lde/innosystec/unrar/unpack/ppm/k;->d(II)V

    return v0

    .line 21
    :cond_1
    invoke-direct {p0, p1, p2, v0}, Lde/innosystec/unrar/unpack/ppm/k;->b(III)V

    return p1
.end method

.method public b()I
    .locals 2

    .line 7
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->g:I

    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->f:I

    if-eq v0, v1, :cond_0

    .line 8
    sget v1, Lde/innosystec/unrar/unpack/ppm/k;->t:I

    sub-int/2addr v0, v1

    iput v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->g:I

    return v0

    .line 9
    :cond_0
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    const/4 v1, 0x0

    aget-object v0, v0, v1

    invoke-virtual {v0}, Lde/innosystec/unrar/unpack/ppm/g;->b()I

    move-result v0

    if-eqz v0, :cond_1

    .line 10
    invoke-direct {p0, v1}, Lde/innosystec/unrar/unpack/ppm/k;->g(I)I

    move-result v0

    return v0

    .line 11
    :cond_1
    invoke-direct {p0, v1}, Lde/innosystec/unrar/unpack/ppm/k;->f(I)I

    move-result v0

    return v0
.end method

.method public b(I)V
    .locals 1

    .line 13
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/k;->g()I

    move-result v0

    sub-int/2addr v0, p1

    invoke-virtual {p0, v0}, Lde/innosystec/unrar/unpack/ppm/k;->c(I)V

    return-void
.end method

.method public b(II)V
    .locals 1

    .line 12
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->c:[I

    add-int/lit8 p2, p2, -0x1

    aget p2, v0, p2

    invoke-direct {p0, p1, p2}, Lde/innosystec/unrar/unpack/ppm/k;->d(II)V

    return-void
.end method

.method public c()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    iput v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->a:I

    return-void
.end method

.method public c(I)V
    .locals 0

    .line 3
    iput p1, p0, Lde/innosystec/unrar/unpack/ppm/k;->i:I

    return-void
.end method

.method public d()I
    .locals 1

    .line 23
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->l:I

    return v0
.end method

.method public d(I)Z
    .locals 7

    shl-int/lit8 p1, p1, 0x14

    const/high16 v0, 0x400000

    if-le p1, v0, :cond_0

    const/high16 p1, 0x400000

    .line 5
    :cond_0
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->a:I

    const/4 v1, 0x1

    if-ne v0, p1, :cond_1

    return v1

    .line 6
    :cond_1
    invoke-virtual {p0}, Lde/innosystec/unrar/unpack/ppm/k;->j()V

    .line 7
    div-int/lit8 v0, p1, 0xc

    sget v2, Lde/innosystec/unrar/unpack/ppm/k;->t:I

    mul-int v0, v0, v2

    add-int/2addr v0, v2

    add-int/lit8 v2, v0, 0x1

    add-int/lit16 v2, v2, 0x98

    .line 8
    iput v2, p0, Lde/innosystec/unrar/unpack/ppm/k;->o:I

    add-int/lit8 v2, v2, 0xc

    .line 9
    :try_start_0
    new-array v3, v2, [B

    iput-object v3, p0, Lde/innosystec/unrar/unpack/ppm/k;->m:[B
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v3

    .line 10
    sget-object v4, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v6, ","

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v4, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 11
    invoke-virtual {v3}, Ljava/lang/Throwable;->printStackTrace()V

    .line 12
    :goto_0
    iput v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->e:I

    add-int v2, v1, v0

    .line 13
    sget v3, Lde/innosystec/unrar/unpack/ppm/k;->t:I

    sub-int/2addr v2, v3

    iput v2, p0, Lde/innosystec/unrar/unpack/ppm/k;->k:I

    .line 14
    iput p1, p0, Lde/innosystec/unrar/unpack/ppm/k;->a:I

    add-int/2addr v0, v1

    .line 15
    iput v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->n:I

    const/4 p1, 0x0

    .line 16
    :goto_1
    iget-object v2, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    array-length v3, v2

    if-ge p1, v3, :cond_2

    .line 17
    new-instance v3, Lde/innosystec/unrar/unpack/ppm/g;

    iget-object v4, p0, Lde/innosystec/unrar/unpack/ppm/k;->m:[B

    invoke-direct {v3, v4}, Lde/innosystec/unrar/unpack/ppm/g;-><init>([B)V

    aput-object v3, v2, p1

    .line 18
    iget-object v2, p0, Lde/innosystec/unrar/unpack/ppm/k;->h:[Lde/innosystec/unrar/unpack/ppm/g;

    aget-object v2, v2, p1

    invoke-virtual {v2, v0}, Lde/innosystec/unrar/unpack/ppm/d;->a(I)V

    add-int/lit8 p1, p1, 0x1

    add-int/lit8 v0, v0, 0x4

    goto :goto_1

    .line 19
    :cond_2
    new-instance p1, Lde/innosystec/unrar/unpack/ppm/g;

    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->m:[B

    invoke-direct {p1, v0}, Lde/innosystec/unrar/unpack/ppm/g;-><init>([B)V

    iput-object p1, p0, Lde/innosystec/unrar/unpack/ppm/k;->p:Lde/innosystec/unrar/unpack/ppm/g;

    .line 20
    new-instance p1, Lde/innosystec/unrar/unpack/ppm/f;

    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->m:[B

    invoke-direct {p1, v0}, Lde/innosystec/unrar/unpack/ppm/f;-><init>([B)V

    iput-object p1, p0, Lde/innosystec/unrar/unpack/ppm/k;->q:Lde/innosystec/unrar/unpack/ppm/f;

    .line 21
    new-instance p1, Lde/innosystec/unrar/unpack/ppm/f;

    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->m:[B

    invoke-direct {p1, v0}, Lde/innosystec/unrar/unpack/ppm/f;-><init>([B)V

    iput-object p1, p0, Lde/innosystec/unrar/unpack/ppm/k;->r:Lde/innosystec/unrar/unpack/ppm/f;

    .line 22
    new-instance p1, Lde/innosystec/unrar/unpack/ppm/f;

    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->m:[B

    invoke-direct {p1, v0}, Lde/innosystec/unrar/unpack/ppm/f;-><init>([B)V

    iput-object p1, p0, Lde/innosystec/unrar/unpack/ppm/k;->s:Lde/innosystec/unrar/unpack/ppm/f;

    return v1
.end method

.method public e()[B
    .locals 1

    .line 2
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->m:[B

    return-object v0
.end method

.method public f()I
    .locals 1

    .line 15
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->k:I

    return v0
.end method

.method public g()I
    .locals 1

    .line 5
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->i:I

    return v0
.end method

.method public h()V
    .locals 1

    .line 1
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->i:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->i:I

    return-void
.end method

.method public i()V
    .locals 8

    .line 1
    iget-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->m:[B

    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->n:I

    invoke-direct {p0}, Lde/innosystec/unrar/unpack/ppm/k;->l()I

    move-result v2

    add-int/2addr v2, v1

    const/4 v3, 0x0

    invoke-static {v0, v1, v2, v3}, Ljava/util/Arrays;->fill([BIIB)V

    .line 2
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->e:I

    iput v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->i:I

    .line 3
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->a:I

    div-int/lit8 v2, v1, 0x8

    const/16 v4, 0xc

    div-int/2addr v2, v4

    mul-int/lit8 v2, v2, 0x7

    mul-int/lit8 v2, v2, 0xc

    .line 4
    div-int/lit8 v5, v2, 0xc

    sget v6, Lde/innosystec/unrar/unpack/ppm/k;->t:I

    mul-int v5, v5, v6

    sub-int v2, v1, v2

    .line 5
    div-int/lit8 v7, v2, 0xc

    mul-int v7, v7, v6

    rem-int/lit8 v6, v2, 0xc

    add-int/2addr v7, v6

    add-int/2addr v1, v0

    .line 6
    iput v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->g:I

    add-int/2addr v7, v0

    .line 7
    iput v7, p0, Lde/innosystec/unrar/unpack/ppm/k;->j:I

    iput v7, p0, Lde/innosystec/unrar/unpack/ppm/k;->f:I

    add-int/2addr v0, v2

    .line 8
    iput v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->l:I

    add-int/2addr v7, v5

    .line 9
    iput v7, p0, Lde/innosystec/unrar/unpack/ppm/k;->g:I

    const/4 v0, 0x1

    const/4 v1, 0x0

    const/4 v2, 0x1

    :goto_0
    const/4 v5, 0x4

    if-ge v1, v5, :cond_0

    .line 10
    iget-object v5, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    and-int/lit16 v6, v2, 0xff

    aput v6, v5, v1

    add-int/lit8 v1, v1, 0x1

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    add-int/2addr v2, v0

    :goto_1
    const/16 v6, 0x8

    if-ge v1, v6, :cond_1

    .line 11
    iget-object v6, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    and-int/lit16 v7, v2, 0xff

    aput v7, v6, v1

    add-int/lit8 v1, v1, 0x1

    add-int/lit8 v2, v2, 0x2

    goto :goto_1

    :cond_1
    add-int/2addr v2, v0

    :goto_2
    if-ge v1, v4, :cond_2

    .line 12
    iget-object v6, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    and-int/lit16 v7, v2, 0xff

    aput v7, v6, v1

    add-int/lit8 v1, v1, 0x1

    add-int/lit8 v2, v2, 0x3

    goto :goto_2

    :cond_2
    add-int/2addr v2, v0

    :goto_3
    const/16 v4, 0x26

    if-ge v1, v4, :cond_3

    .line 13
    iget-object v4, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    and-int/lit16 v6, v2, 0xff

    aput v6, v4, v1

    add-int/lit8 v1, v1, 0x1

    add-int/2addr v2, v5

    goto :goto_3

    .line 14
    :cond_3
    iput v3, p0, Lde/innosystec/unrar/unpack/ppm/k;->d:I

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_4
    const/16 v4, 0x80

    if-ge v1, v4, :cond_5

    .line 15
    iget-object v4, p0, Lde/innosystec/unrar/unpack/ppm/k;->b:[I

    aget v4, v4, v2

    add-int/lit8 v5, v1, 0x1

    if-ge v4, v5, :cond_4

    const/4 v4, 0x1

    goto :goto_5

    :cond_4
    const/4 v4, 0x0

    :goto_5
    add-int/2addr v2, v4

    .line 16
    iget-object v4, p0, Lde/innosystec/unrar/unpack/ppm/k;->c:[I

    and-int/lit16 v6, v2, 0xff

    aput v6, v4, v1

    move v1, v5

    goto :goto_4

    :cond_5
    return-void
.end method

.method public j()V
    .locals 2

    .line 1
    iget v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->a:I

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 2
    iput v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->a:I

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->m:[B

    const/4 v1, 0x1

    .line 4
    iput v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->e:I

    .line 5
    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->p:Lde/innosystec/unrar/unpack/ppm/g;

    .line 6
    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->q:Lde/innosystec/unrar/unpack/ppm/f;

    .line 7
    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->r:Lde/innosystec/unrar/unpack/ppm/f;

    .line 8
    iput-object v0, p0, Lde/innosystec/unrar/unpack/ppm/k;->s:Lde/innosystec/unrar/unpack/ppm/f;

    :cond_0
    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "SubAllocator["

    .line 2
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\n  subAllocatorSize="

    .line 3
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 4
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->a:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "\n  glueCount="

    .line 5
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 6
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->d:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "\n  heapStart="

    .line 7
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 8
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->e:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "\n  loUnit="

    .line 9
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 10
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->f:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "\n  hiUnit="

    .line 11
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 12
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->g:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "\n  pText="

    .line 13
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 14
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->i:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "\n  unitsStart="

    .line 15
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 16
    iget v1, p0, Lde/innosystec/unrar/unpack/ppm/k;->j:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "\n]"

    .line 17
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 18
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
